const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const passwordSchema = new Schema({
    userId: {
        type: String,
        require: true,
        unique: true
    },
    password:{
        type:String,
        require: true,
        unique: true
    }
},
    {
        collection: 'password', versionKey: false
    })

    module.exports=mongoose.model('Password',passwordSchema)